import axios from 'axios'

const  instance = axios.create({
    baseURL: "http://127.0.0.1:8888/api/private/v1"
});
instance.interceptors.request.use(function (config) {
    const token = sessionStorage.getItem('TOKEN')
   token&& (config.headers.common['Authorization'] = token)
    return config;
}, function (error) {

    return Promise.reject(error);
});
export default instance